<?
    require_once(dirname(__FILE__).'/../config.inc.php');
    require_once($config['app_dir'].'/classes/flash.server.php');

    $aAction = $_GET['action'];

	// zaglushka
    if ($_GET['trade']) $aTrade = $_GET['trade'];
    else $aTrade = 103;

    $aTimeFrame = $_GET['tframe'];
    $aSystem = $_GET['system'];
    $aDays = $_GET['days'];
    $aEntry = $_GET['entry'];
    $fsw = $_GET['fsw'];
    $fid = $_GET['fid'];

	 //-----------------------------------------------------------------
    //echo "<br>-----------------------------------------------------------------<br>";

    $FlashRequest = new objFlashCandleServer($aAction, $aTrade, $aTimeFrame, false, $aSystem, $aDays, $aEntry, $fsw, $fid);
    $FlashRequest->ProcessRequest();

    //-----------------------------------------------------------------
    //echo "<br>-----------------------------------------------------------------<br>";

    //$fcastArray = new objFlashForecastServer(false, 2400103, false, false, 1);
    //$fcasts = $fcastArray->getForecastData();
    //echo gettype($fcasts[0]);



?>